home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFUNCS / EVNXTIME.C < prev    next >
C/C++ Source or Header  |  1993-03-21  |  726b  |  31 lines

  1. /**************************************************************************
  2.  * EVNXTIME.C -  Extended evnt_timer() routine...
  3.  *************************************************************************/
  4.  
  5. #include "gemfintl.h"
  6.  
  7.  
  8. #ifdef __GNUC__
  9.  
  10. #undef evnt_timer
  11.  
  12. extern short evnt_timer(unsigned long milliseconds);
  13.  
  14. short _EvntFixGNUTimer(unsigned short locount, unsigned short hicount)
  15. {
  16.     return evnt_timer((((unsigned long)hicount) << 16) | locount);
  17. }
  18.  
  19. #endif /* __GNUC__ */
  20.  
  21. short evnx_timer(milliseconds)
  22.     unsigned long milliseconds;
  23. {
  24. #ifdef __GNUC__
  25.     return evnt_timer(milliseconds);
  26. #else
  27.     return evnt_timer((short)(milliseconds&0xFFFF),(short)(milliseconds>>16));
  28. #endif
  29. }
  30.  
  31.